import java.util.Scanner;


public class Main {
    /**
     *JAVA12 小球走过路程计算
     */
    public static void main1(String[] args) {
        Scanner scanner=new Scanner(System.in);
        float h=scanner.nextFloat();
        int n =scanner.nextInt();

        //write your code here......
        
            
        //输出格式为：System.out.println(String.format("%.3f", h)+" "+String.format("%.3f", sum));
        float start = h;
        float sum = 0.0f;
        for (int i = 0;i<n;i++){
            sum +=h*2;// 100 50 25 12.5
            h /=2.0;
        }
        sum = sum - start;
        System.out.println(String.format("%.3f", h)+" "+String.format("%.3f", sum));

    }

    /**
     *
     * @param args  JAVA13 求平均数
     */
    public static void main2(String[] args) {
        Scanner scan = new Scanner(System.in);

        //write your code here......
        int ct = 0;
        double avg = 0.0;
        while(scan.hasNextLine()){
            int n = scan.nextInt();
            if (n < 0){
                break;
            }
            avg += n;
            ct++;

        }
        avg = avg/ct;


        //输出格式为：System.out.println(String.format("%.2f",avg));

        System.out.println(String.format("%.2f",avg));

    }


    /**
     *                  JAVA14 判断质数
     * @param args
     */
    public static void main3(String[] args) {
        Main main = new Main();
        Scanner scan = new Scanner(System.in);
        int number = scan.nextInt();
        System.out.println(main.isPrimeNumber(number));
    }

    public Boolean isPrimeNumber(int number) {

        //write your code here......
        if (number < 1){
            return false;
        }
        int i = 2;
        for (i = 2;i<number;i++){
            if (number%i == 0){
                return false;
            }
        }
        return true;

    }


    /**
     * JAVA15 计算整数位数
     * @param args
     */
    public static void main4(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();

        //write code here......
        int ans = 0;
        while(num != 0){
            ans++;
            num /= 10;
        }
        System.out.println(ans);
    }

    /**
     * JAVA16 数组遍历
     * @param args
     */
    public static void main5(String[] args) {


        //write your code here......
        Scanner scan = new Scanner(System.in);
        int[] num = new int[6];
        for (int i = 0;i<6;i++){
            int n = scan.nextInt();
            num[i] = n;
        }
        int max = 0;
        int min = num[0];
        for (int i = 0;i<6;i++){
            if (max < num[i])
                max = num[i];
            if (min > num[i]){
                min = num[i];
            }
        }
        System.out.println(max +" "+min);

    }
}